package com.yy.young.business.service;

import com.yy.young.dal.util.Page;
import com.yy.young.business.model.Project;
import java.util.List;

/**
 * 项目服务接口
 * Created by rookie on 2018-03-09.
 */
public interface IProjectService {

    /**
     * 获取数据列表
     * @param project
     * @return
     * @throws Exception
     */
    List<Project> getProjectList(Project project) throws Exception;

    /**
     * 获取数据列表(分页)
     * @param project
     * @param page 分页参数
     * @return
     * @throws Exception
     */
    List<Project> getProjectPage(Project project, Page page) throws Exception;

    /**
     * 根据id获取信息
     * @param id
     * @return
     * @throws Exception
     */
    Project getProject(String id) throws Exception;

    /**
     * 修改
     * @param project
     * @return
     * @throws Exception
     */
    int updateProject(Project project) throws Exception;

    /**
     * 批量删除
     * @param idArr id数组
     * @return
     * @throws Exception
     */
    int deleteProject(String[] idArr) throws Exception;

    /**
     * 删除单条
     * @param id
     * @return
     * @throws Exception
     */
    int deleteProject(String id) throws Exception;

    /**
     * 插入
     * @param project
     * @return
     * @throws Exception
     */
    int insertProject(Project project) throws Exception;

}